﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotLiquid;
using PasteBuilder.handler;

namespace PasteBuilder.Models
{
    /// <summary>
    /// 对象信息 字段信息
    /// </summary>
    public class TapClassModel : Drop
    {
        /// <summary>
        /// 命名空间，项目名称
        /// </summary>
        public string Namespace { get; set; }

        /// <summary>
        /// 模型名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 首字母小写
        /// </summary>
        public string lowerName
        {
            get
            {
                return CommonHelper.FirstCharToLower(Name);
            }
        }

        /// <summary>
        /// 模型中文名称
        /// </summary>
        public string CnName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 文件夹名称
        /// </summary>
        public string DirName { get; set; }

        /// <summary>
        /// 附带的属性
        /// </summary>
        public List<ClassProperty> ClassPropertys { get; set; }

        /// <summary>
        /// uint long int
        /// </summary>
        public string EntityType { get; set; } = "int";

        /// <summary>
        /// 显示的注释 注释summary里面的内容
        /// </summary>
        public string DisplayStr { get; set; }

        /// <summary>
        /// 作废，使用CnName替代
        /// </summary>
        public string DisplayShort { get; set; }

        /// <summary>
        /// 是否是读写分离模式
        /// </summary>
        public bool IsWriteReadModel { get; set; } = false;

    }
}
